#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>

#include "language_entry.h"
#include "language_entry_table.h"

extern const language_entry_t g_entry_table[];

uint32_t g_language_index = 0;

void language_index_set(uint32_t language_index)
{
    g_language_index = language_index;
}

const char * language_entry_get(uint32_t index)
{
    return g_entry_table[index].lang[g_language_index];
}

uint32_t language_entry_size(void)
{
    return (LANGUAGE_INDEX_MAX - 1);
}

